<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta charset="utf-8" />
<title>Demo</title>
<style>
a.test {
	font-weight: bold;
}
</style>


</head>
<body>
	<a href="http://jquery.com/">jQuery</a>
	<script src="scripts/jquery-1.10.2.js"></script>
	<script>
 
    $( document ).ready(function() {
        $( "a" ).click(function( event ) {
            alert( "The link will no longer take you to jquery.com" );
            $( "a" ).addClass( "test" );
            event.preventDefault();
            $( this ).hide( "slow" );
        });
    });
 
    </script>
</body>
</html>